package com.uyun.app.main.service.impl;

import com.uyun.app.main.dao.MainDao;
import com.uyun.app.main.service.MainService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.*;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.Collections;
import java.util.Map;


@Service
public class MainServiceImpl implements MainService {

    private static final Logger logger = LoggerFactory.getLogger(MainServiceImpl.class);

	@Autowired
	private MainDao mainDao;


	@Override
	public Map<String, Object> validateUser(String username, String password) {

		return mainDao.validateUser(username, password);

	}

	@Override
	public String getPwdByUserName(String username) {

		return mainDao.getPwdByUserName(username);
	}



	
}
